using Microsoft.Extensions.DependencyInjection;
using FirstTea.Application.Interfaces;
using FirstTea.Application.Services;

namespace FirstTea.Application
{
	public static class ServiceCollectionExtension
	{
		public static IServiceCollection AddApplicationServices(this IServiceCollection services)
		{
			services.AddScoped<IUserService, UserService>();
			services.AddScoped<ITeaService, TeaService>();
			services.AddScoped<IOrderService, OrderService>();
			services.AddScoped<IConversationService, ConversationService>();
			services.AddScoped<IAuthService, AuthService>();
			return services;
		}
	}
}
